path = dir();


for i = 3:length(path)
    fname = path(i).name;
    
    if(length(fname) < 8), continue, end
    
    %not a log data
    if(~strcmp( fname( 1:5) ,'vali_') ), continue, end
    
    %already copy to down
    if(strcmp( fname(end-8:end),'_down.mat') ), continue  ,end
    if(strcmp( fname(end-4:end),'_down') ), continue  ,end
    
    load(fname)
    
    for k = 1:length(vali)
        temp.act_F_res = vali{k}.act_F_res;
        temp.act_F_lab = vali{k}.act_F_lab;        
        vali{k} = temp;
    end
        
    if(strcmp( fname(end-3:end) ,'.mat' ) )
        save_name = [fname(1 : end-4) '_down.mat'];
    else
        save_name = [fname '_down.mat'];
    end
    
    save(save_name,'vali');
    
    %break;
end
